/*
* acooly.cn Inc.
* Copyright (c) 2017 All Rights Reserved.
* create by ouwen
* date:2017-09-20
*/
package com.yiji.fintech.musfinance.entity;


import com.acooly.core.common.domain.AbstractEntity;
import com.yiji.fintech.musfinance.common.annotation.ChannelAnnotation;
import com.yiji.fintech.musfinance.common.annotation.FieldQuery;
import com.yiji.fintech.musfinance.common.enums.StatusEnum;
import com.yiji.fintech.musfinance.common.enums.TrustModelEnum;
import lombok.Getter;
import lombok.Setter;
import org.hibernate.validator.constraints.NotEmpty;

import javax.persistence.Entity;
import javax.persistence.EnumType;
import javax.persistence.Enumerated;
import javax.persistence.Table;
import javax.validation.constraints.Size;

/**
 * center_business_config Entity
 *
 * @author ouwen
 * Date: 2017-09-20 22:13:11
 */
@Getter
@Setter
@Entity
@Table(name = "center_business_config")
public class BusinessConfig extends AbstractEntity {
	/** serialVersionUID */
	private static final long serialVersionUID = 1L;


	/** 商户号 */
	@NotEmpty
	@Size(max=32)
	@ChannelAnnotation
	@FieldQuery
    private String partnerId;

	/** 状态 */
    @Enumerated(EnumType.STRING)
	@ChannelAnnotation
	@FieldQuery
    private StatusEnum status;

	/** 托管模式 */
	@Enumerated(EnumType.STRING)
	private TrustModelEnum trustModel;

	/** 备注 */
	@Size(max=64)
	private String memo;

}
